package com.dragon.modules.yuegou.query.system;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.dragon.modules.yuegou.entity.system.FeedbackEntity;
import com.dragon.modules.yuegou.enums.system.FeedbackType;
import com.dragon.modules.yuegou.mybatis.Condition;
import com.dragon.modules.yuegou.mybatis.Query;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonUnwrapped;

import java.time.LocalDateTime;

/**
 * 意见反馈 动态查询条件
 * 
 * @author pbuilder generated
 * @date 2023-09-07 17:14:21
 * @version 2.0
 */
@JsonInclude(Include.NON_NULL)
public class FeedbackQuery extends FeedbackEntity implements Query<FeedbackEntity> {

    /** 查询条件 */
	@JsonUnwrapped(prefix = "id")
	private Condition<String> idCondition;

    /** 商圈id查询条件 */
	@JsonUnwrapped(prefix = "busdId")
	private Condition<String> busdIdCondition;

    /** [枚举]应用类型：0-悦购-YGIRL、1-悦荷包-WALLET、2-悦商管-YSQ、3-悦商惠-YSH、4-员工版-YGB、5-安卓-ANDROID、6-苹果-IOS、7-大运营版-PLATFORM、8-集团版-GROUP、9-支付宝小程序-ALIXCX查询条件 */
	@JsonUnwrapped(prefix = "type")
	private Condition<FeedbackType> typeCondition;

    /** 手机号查询条件 */
	@JsonUnwrapped(prefix = "mobile")
	private Condition<String> mobileCondition;

    /** 会员id查询条件 */
	@JsonUnwrapped(prefix = "memberId")
	private Condition<String> memberIdCondition;

    /** 意见反馈内容查询条件 */
	@JsonUnwrapped(prefix = "content")
	private Condition<String> contentCondition;

    /** 意见反馈图片，多张用逗号隔开查询条件 */
	@JsonUnwrapped(prefix = "feedbackImgs")
	private Condition<String> feedbackImgsCondition;

    /** 创建时间查询条件 */
	@JsonUnwrapped(prefix = "createdTime")
	private Condition<LocalDateTime> createdTimeCondition;

    /** 是否删除 0否，1是查询条件 */
	@JsonUnwrapped(prefix = "del")
	private Condition<Boolean> delCondition;

	/**
	 * 构造一个查询条件对象
	 */
	public FeedbackQuery() {
		super();
	}

	/**
	 * 依据实体对象构造一个查询条件对象
	 * 
	 * @param entity 实体对象
	 */
	public FeedbackQuery(FeedbackEntity entity) {
		super(entity);
	}

	/**
	 * 依据其它查询条件对象的信息构造一个查询条件对象
	 * 
	 * @param other 查询条件对象
	 */
	public FeedbackQuery(FeedbackQuery other) {
		super(other);
		if(other.idCondition != null) {
			this.idCondition = other.idCondition.copy();
		}
		if(other.busdIdCondition != null) {
			this.busdIdCondition = other.busdIdCondition.copy();
		}
		if(other.typeCondition != null) {
			this.typeCondition = other.typeCondition.copy();
		}
		if(other.mobileCondition != null) {
			this.mobileCondition = other.mobileCondition.copy();
		}
		if(other.memberIdCondition != null) {
			this.memberIdCondition = other.memberIdCondition.copy();
		}
		if(other.contentCondition != null) {
			this.contentCondition = other.contentCondition.copy();
		}
		if(other.feedbackImgsCondition != null) {
			this.feedbackImgsCondition = other.feedbackImgsCondition.copy();
		}
		if(other.createdTimeCondition != null) {
			this.createdTimeCondition = other.createdTimeCondition.copy();
		}
		if(other.delCondition != null) {
			this.delCondition = other.delCondition.copy();
		}
	}

	@Override
	public QueryWrapper<FeedbackEntity> toQueryWrapper() {
		QueryWrapper<FeedbackEntity> wrapper = new QueryWrapper<>(this);
		if (idCondition != null) {
			idCondition.toWrapper(wrapper, COL_ID);
		}
		if (busdIdCondition != null) {
			busdIdCondition.toWrapper(wrapper, COL_BUSD_ID);
		}
		if (typeCondition != null) {
			typeCondition.toWrapper(wrapper, COL_TYPE);
		}
		if (mobileCondition != null) {
			mobileCondition.toWrapper(wrapper, COL_MOBILE);
		}
		if (memberIdCondition != null) {
			memberIdCondition.toWrapper(wrapper, COL_MEMBER_ID);
		}
		if (contentCondition != null) {
			contentCondition.toWrapper(wrapper, COL_CONTENT);
		}
		if (feedbackImgsCondition != null) {
			feedbackImgsCondition.toWrapper(wrapper, COL_FEEDBACK_IMGS);
		}
		if (createdTimeCondition != null) {
			createdTimeCondition.toWrapper(wrapper, COL_CREATED_TIME);
		}
		if (delCondition != null) {
			delCondition.toWrapper(wrapper, COL_DEL);
		}
		return wrapper;
	}
	
	/**
	 * 构造并返回查询条件
	 * 
	 * @return idCondition 查询条件
	 */
	public Condition<String> id() {
		this.idCondition = new Condition<>();
		return this.idCondition;
	}
	
	/**
	 * 获取查询条件
	 * 
	 * @return idCondition 查询条件
	 */
	public Condition<String> getIdCondition() {
		return idCondition;
	}

	/**
	 * 设置查询条件
	 * 
	 * @param idCondition 查询条件
	 */
	public void setIdCondition(Condition<String> idCondition) {
		this.idCondition = idCondition;
	}

	/**
	 * 构造并返回商圈id查询条件
	 * 
	 * @return busdIdCondition 商圈id查询条件
	 */
	public Condition<String> busdId() {
		this.busdIdCondition = new Condition<>();
		return this.busdIdCondition;
	}
	
	/**
	 * 获取商圈id查询条件
	 * 
	 * @return busdIdCondition 商圈id查询条件
	 */
	public Condition<String> getBusdIdCondition() {
		return busdIdCondition;
	}

	/**
	 * 设置商圈id查询条件
	 * 
	 * @param busdIdCondition 商圈id查询条件
	 */
	public void setBusdIdCondition(Condition<String> busdIdCondition) {
		this.busdIdCondition = busdIdCondition;
	}

	/**
	 * 构造并返回[枚举]应用类型：0-悦购-YGIRL、1-悦荷包-WALLET、2-悦商管-YSQ、3-悦商惠-YSH、4-员工版-YGB、5-安卓-ANDROID、6-苹果-IOS、7-大运营版-PLATFORM、8-集团版-GROUP、9-支付宝小程序-ALIXCX查询条件
	 * 
	 * @return typeCondition [枚举]应用类型：0-悦购-YGIRL、1-悦荷包-WALLET、2-悦商管-YSQ、3-悦商惠-YSH、4-员工版-YGB、5-安卓-ANDROID、6-苹果-IOS、7-大运营版-PLATFORM、8-集团版-GROUP、9-支付宝小程序-ALIXCX查询条件
	 */
	public Condition<FeedbackType> type() {
		this.typeCondition = new Condition<>();
		return this.typeCondition;
	}
	
	/**
	 * 获取[枚举]应用类型：0-悦购-YGIRL、1-悦荷包-WALLET、2-悦商管-YSQ、3-悦商惠-YSH、4-员工版-YGB、5-安卓-ANDROID、6-苹果-IOS、7-大运营版-PLATFORM、8-集团版-GROUP、9-支付宝小程序-ALIXCX查询条件
	 * 
	 * @return typeCondition [枚举]应用类型：0-悦购-YGIRL、1-悦荷包-WALLET、2-悦商管-YSQ、3-悦商惠-YSH、4-员工版-YGB、5-安卓-ANDROID、6-苹果-IOS、7-大运营版-PLATFORM、8-集团版-GROUP、9-支付宝小程序-ALIXCX查询条件
	 */
	public Condition<FeedbackType> getTypeCondition() {
		return typeCondition;
	}

	/**
	 * 设置[枚举]应用类型：0-悦购-YGIRL、1-悦荷包-WALLET、2-悦商管-YSQ、3-悦商惠-YSH、4-员工版-YGB、5-安卓-ANDROID、6-苹果-IOS、7-大运营版-PLATFORM、8-集团版-GROUP、9-支付宝小程序-ALIXCX查询条件
	 * 
	 * @param typeCondition [枚举]应用类型：0-悦购-YGIRL、1-悦荷包-WALLET、2-悦商管-YSQ、3-悦商惠-YSH、4-员工版-YGB、5-安卓-ANDROID、6-苹果-IOS、7-大运营版-PLATFORM、8-集团版-GROUP、9-支付宝小程序-ALIXCX查询条件
	 */
	public void setTypeCondition(Condition<FeedbackType> typeCondition) {
		this.typeCondition = typeCondition;
	}

	/**
	 * 构造并返回手机号查询条件
	 * 
	 * @return mobileCondition 手机号查询条件
	 */
	public Condition<String> mobile() {
		this.mobileCondition = new Condition<>();
		return this.mobileCondition;
	}
	
	/**
	 * 获取手机号查询条件
	 * 
	 * @return mobileCondition 手机号查询条件
	 */
	public Condition<String> getMobileCondition() {
		return mobileCondition;
	}

	/**
	 * 设置手机号查询条件
	 * 
	 * @param mobileCondition 手机号查询条件
	 */
	public void setMobileCondition(Condition<String> mobileCondition) {
		this.mobileCondition = mobileCondition;
	}

	/**
	 * 构造并返回会员id查询条件
	 * 
	 * @return memberIdCondition 会员id查询条件
	 */
	public Condition<String> memberId() {
		this.memberIdCondition = new Condition<>();
		return this.memberIdCondition;
	}
	
	/**
	 * 获取会员id查询条件
	 * 
	 * @return memberIdCondition 会员id查询条件
	 */
	public Condition<String> getMemberIdCondition() {
		return memberIdCondition;
	}

	/**
	 * 设置会员id查询条件
	 * 
	 * @param memberIdCondition 会员id查询条件
	 */
	public void setMemberIdCondition(Condition<String> memberIdCondition) {
		this.memberIdCondition = memberIdCondition;
	}

	/**
	 * 构造并返回意见反馈内容查询条件
	 * 
	 * @return contentCondition 意见反馈内容查询条件
	 */
	public Condition<String> content() {
		this.contentCondition = new Condition<>();
		return this.contentCondition;
	}
	
	/**
	 * 获取意见反馈内容查询条件
	 * 
	 * @return contentCondition 意见反馈内容查询条件
	 */
	public Condition<String> getContentCondition() {
		return contentCondition;
	}

	/**
	 * 设置意见反馈内容查询条件
	 * 
	 * @param contentCondition 意见反馈内容查询条件
	 */
	public void setContentCondition(Condition<String> contentCondition) {
		this.contentCondition = contentCondition;
	}

	/**
	 * 构造并返回意见反馈图片，多张用逗号隔开查询条件
	 * 
	 * @return feedbackImgsCondition 意见反馈图片，多张用逗号隔开查询条件
	 */
	public Condition<String> feedbackImgs() {
		this.feedbackImgsCondition = new Condition<>();
		return this.feedbackImgsCondition;
	}
	
	/**
	 * 获取意见反馈图片，多张用逗号隔开查询条件
	 * 
	 * @return feedbackImgsCondition 意见反馈图片，多张用逗号隔开查询条件
	 */
	public Condition<String> getFeedbackImgsCondition() {
		return feedbackImgsCondition;
	}

	/**
	 * 设置意见反馈图片，多张用逗号隔开查询条件
	 * 
	 * @param feedbackImgsCondition 意见反馈图片，多张用逗号隔开查询条件
	 */
	public void setFeedbackImgsCondition(Condition<String> feedbackImgsCondition) {
		this.feedbackImgsCondition = feedbackImgsCondition;
	}

	/**
	 * 构造并返回创建时间查询条件
	 * 
	 * @return createdTimeCondition 创建时间查询条件
	 */
	public Condition<LocalDateTime> createdTime() {
		this.createdTimeCondition = new Condition<>();
		return this.createdTimeCondition;
	}
	
	/**
	 * 获取创建时间查询条件
	 * 
	 * @return createdTimeCondition 创建时间查询条件
	 */
	public Condition<LocalDateTime> getCreatedTimeCondition() {
		return createdTimeCondition;
	}

	/**
	 * 设置创建时间查询条件
	 * 
	 * @param createdTimeCondition 创建时间查询条件
	 */
	public void setCreatedTimeCondition(Condition<LocalDateTime> createdTimeCondition) {
		this.createdTimeCondition = createdTimeCondition;
	}

	/**
	 * 构造并返回是否删除 0否，1是查询条件
	 * 
	 * @return delCondition 是否删除 0否，1是查询条件
	 */
	public Condition<Boolean> del() {
		this.delCondition = new Condition<>();
		return this.delCondition;
	}
	
	/**
	 * 获取是否删除 0否，1是查询条件
	 * 
	 * @return delCondition 是否删除 0否，1是查询条件
	 */
	public Condition<Boolean> getDelCondition() {
		return delCondition;
	}

	/**
	 * 设置是否删除 0否，1是查询条件
	 * 
	 * @param delCondition 是否删除 0否，1是查询条件
	 */
	public void setDelCondition(Condition<Boolean> delCondition) {
		this.delCondition = delCondition;
	}

}
